<template>
	<view class="main-box" v-if="!isVerify">
		<image class="logo" mode="widthFix" src="https://h5.sx2b2c.com/images/xima_laya/index/logo.png"></image>
		<view class="explain">您即将跳转至喜马拉雅的服务，会使用您当前手机号查询对应喜马拉雅账号的签约情况判断活动资格，符合活动资格后，您可以开通喜马拉雅的连续包月服务</view>
		<view class="btn-list">
			<view class="submit-btn" @click="submit">已知晓</view>
			<view class="cancel" @click="cancel">再想想</view>
		</view>
	</view>
	<view v-else style="height: 100vh;display: flex;justify-content: center;align-items: center;color: #00000;">
		该功能暂未开通
	</view>
</template>

<script>
	import commonApi from '../../api/commonApi';
	export default {
		data() {
			return {
				isVerify: false,
			};
		},
		onLoad() {
			this.initData()
		},
		methods: {
			initData() {
				commonApi.isVerify(res => {
					this.isVerify = res
				})
			},
			submit() {
				uni.navigateTo({
					url: '/pages/ximaLayaSh/ximaLayaSh'
				})
			},
			cancel() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	.main-box {
		height: 100vh;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;

	}

	.logo {
		width: 145rpx;
		height: 145rpx;
	}

	.explain {
		margin-top: 68rpx;
		width: 579rpx;
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #333333;
	}

	.btn-list {
		margin-top: 68rpx;

		.submit-btn {
			width: 278rpx;
			height: 72rpx;
			line-height: 72rpx;
			line-height: 72rpx;
			background: #48C164;
			border-radius: 5rpx;
			font-size: 34rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
			text-align: center;
		}

		.cancel {
			font-size: 34rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #808080;
			margin-top: 43rpx;
			text-align: center;
		}
	}
</style>